<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui"
      xmlns:c="http://java.sun.com/jsp/jstl/core">
    <h:head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
        <link rel="shortcut icon" href="images/logo W.jpg" />
        <title>Work to Worker</title>
        <style>
            a:link {text-decoration:none;}
            #menudiv2:hover{background-color: #FF6600;color: #1A3665}
        </style>
        <style type="text/css">
            @font-face {
                font-family: "jokerman";
                src: url('font/VIVALDII.TTF') format("truetype");
            }  
            @media screen and (-webkit-min-device-pixel-ratio:0)
            { 
                #fix1 { margin-top: 0px } 
                #fix2 { margin-top: 15px }
                #check{margin-top: 15px}
                #fullname{margin-top: 2px}
                #age, #gender, #ident, #dateIs, #address, #country, #phone {margin-top: 21px}
                #birth, #province{margin-top: 19px}
                #placeIs{margin-top: 20px}
                #email{margin-top: 21px}
            }
            @-moz-document url-prefix()
            {
                #fix1 { margin-top: -20px }
            #check,#birth, #province{margin-top: 20px}
            #age, #gender, #ident, #dateIs, #address, #country, #phone {margin-top: 21px}

            #placeIs{margin-top: 22px}
            #email{margin-top: 24px}
            }
        </style>

        <script>
            var i =0;
            $(document).ready(function(){
                $("#toggle").click(function(){
                    if(i%2==0){
                        $("#info").show("slow");       
                        document.getElementById("toggle").innerHTML = "Hide"
                    }
                    else{
                        $("#info").hide("slow");    
                        document.getElementById("toggle").innerHTML = "View"
                    }
                    i++;
                });
            });
        </script>
    </h:head>
    <h:body style="background-color:  #1A3665">
        <f:view locale="#{languageBean.locale}">
            <div style="width: 1000px;margin: auto;margin-top: 20px;background-color: white;border-radius: 10px;-moz-border-radius: 10px">
                <ui:include src="headertemplate1.xhtml" />            
                <div>
                    <ul style="width: 700px;margin-left: 100px;margin-top: 50px">                       
                    </ul>                  
                    <ul style="width: 700px;;margin-left: 100px;margin-top: 50px">
                        <li style="list-style: none;background-color: #00C2F3;color: white;font-weight: bold;padding: 5px 0px 5px 30px;font-size: 20px;border-top-right-radius: 10px;border-top-left-radius: 10px;-moz-border-top-left-radius: 10px;-moz-border-top-right-radius: 10px">
                            Your Appointment
                        </li>
                        <li style="list-style: none;border: 1px #00C2F3 solid;height: 100px;">
                            <ul style="margin-top: 10px;">
                                 <li style="display: inline">Date Start:</li>
                                 <li style="display: inline"><p:calendar value="#{loadAppointmentBean.dateStart}" id="dStart" pattern="dd.MM.yyyy" required="true" requiredMessage="* Start Date is required" /></li>
                                            <li style="display: inline">
                                                <h:message for="dStart" style="color: red"/>
                                            </li>
                                 <li style="display: inline; margin-left: 20px;">Date End:</li>
                                 <li style="display: inline"><p:calendar value="#{loadAppointmentBean.dateEnd}" id="dEnd" pattern="dd.MM.yyyy" required="true" requiredMessage="* End Date is required" /></li>
                                            <li style="display: inline">
                                                <h:message for="dEnd" style="color: red"/>
                                            </li>
                                 <li style="margin-left: 480px;list-style: none; margin-top: 20px;">
                                     <h:commandButton value="View" action="#{loadAppointmentBean.viewAppointmentAction()}" style="border-style: none;font-weight: bold;background-color: #1A3665;color: white;height: 30px;width:100px;cursor: pointer"/>
                            </li>
                             </ul>     
                             <h:dataTable border="1" value="#{loadAppointmentBean.list}" var="appointment">    
             <h:column>
                <f:facet name="header">
                    Number
                </f:facet>
                #{appointment.identity}
            </h:column>
             <h:column>
                <f:facet name="header">
                    Name Customer
                </f:facet>
                #{appointment.nameCustomer}
            </h:column>
            <h:column>
                <f:facet name="header">
                    Date
                </f:facet>
                #{appointment.date}
            </h:column>
            <h:column>
                <f:facet name="header">
                   Info
                </f:facet>
                #{appointment.content}
            </h:column>
        </h:dataTable>
                            
                        </li>
                    </ul>
                    <ul style="width: 700px;;margin-left: 100px;margin-top: 50px">
                        <h:form id="formfb">
                            <li style="list-style: none;background-color: #00C2F3;color: white;font-weight: bold;padding: 5px 0px 5px 30px;font-size: 20px;border-top-right-radius: 10px;border-top-left-radius: 10px;-moz-border-top-left-radius: 10px;-moz-border-top-right-radius: 10px">
                                Feedback System
                            </li>
                            <li style="list-style: none;border: 1px #00C2F3 solid">
                                <div style="font-size: 20px;font-weight: bold;color: #FF6600;margin-top: 30px;margin-left: 100px">
                                    Your feedback is our success
                                </div>

                                <div style="margin-top: 20px;margin-left: 100px;">
                                    <p:editor value="#{workerProfile.fs.infoFeedback}"/>
                                </div>
                                <div style="margin-top: 20px;text-align: center">
                                    <h:commandButton value="Send" action="#{workerProfile.sendFeedBack()}" style="border: none;color: white;font-size: 16px;background-color: #1A3665;cursor: pointer;padding: 5px 10px 5px 10px" />
                                </div>

                                <br/>
                                <br/>
                            </li> 
                        </h:form>
                    </ul>
                </div>
                <br/>
                <br/>
            </div>
            <div style="color: white; height: 100px;border-radius: 10px;-moz-border-radius: 10px;border: 1px;border-style: solid;border-color: white;margin-top: 20px">
                <div style="text-align: right; padding-top: 20px;padding-right: 30px">
                    Copyright © by Group 1
                    <br />
                    Project Name : Work to Worker
                    <br />
                    Member in Group : Mr Bùi Hồng Hải , Mr Nguyễn Văn Cường , Mr Nguyễn Nhất Linh , Mr Lưu Thế Thông , Mr Trần Trung Hiếu
                </div>
            </div>
        </f:view>
    </h:body>
</html>

